package com.jefe.bamboo.service.service.base;

import com.jefe.bamboo.service.service.UserPrefsBmbLocalService;
import com.jefe.bamboo.service.service.UserPrefsBmbService;
import com.jefe.bamboo.service.service.persistence.UserPrefsBmbPersistence;

import com.liferay.portal.SystemException;
import com.liferay.portal.kernel.annotation.BeanReference;
import com.liferay.portal.service.base.PrincipalBean;
import com.liferay.portal.util.PortalUtil;


public abstract class UserPrefsBmbServiceBaseImpl extends PrincipalBean
    implements UserPrefsBmbService {
    @BeanReference(name = "com.jefe.bamboo.service.service.UserPrefsBmbLocalService.impl")
    protected UserPrefsBmbLocalService userPrefsBmbLocalService;
    @BeanReference(name = "com.jefe.bamboo.service.service.UserPrefsBmbService.impl")
    protected UserPrefsBmbService userPrefsBmbService;
    @BeanReference(name = "com.jefe.bamboo.service.service.persistence.UserPrefsBmbPersistence.impl")
    protected UserPrefsBmbPersistence userPrefsBmbPersistence;

    public UserPrefsBmbLocalService getUserPrefsBmbLocalService() {
        return userPrefsBmbLocalService;
    }

    public void setUserPrefsBmbLocalService(
        UserPrefsBmbLocalService userPrefsBmbLocalService) {
        this.userPrefsBmbLocalService = userPrefsBmbLocalService;
    }

    public UserPrefsBmbService getUserPrefsBmbService() {
        return userPrefsBmbService;
    }

    public void setUserPrefsBmbService(UserPrefsBmbService userPrefsBmbService) {
        this.userPrefsBmbService = userPrefsBmbService;
    }

    public UserPrefsBmbPersistence getUserPrefsBmbPersistence() {
        return userPrefsBmbPersistence;
    }

    public void setUserPrefsBmbPersistence(
        UserPrefsBmbPersistence userPrefsBmbPersistence) {
        this.userPrefsBmbPersistence = userPrefsBmbPersistence;
    }

    protected void runSQL(String sql) throws SystemException {
        try {
            PortalUtil.runSQL(sql);
        } catch (Exception e) {
            throw new SystemException(e);
        }
    }
}
